package com.tan.lighting.disruptor.snapshot.service;


import com.lmax.disruptor.dsl.Disruptor;
import com.tan.lighting.disruptor.event.CommandEvent;


public class CoreSnapshotService {


    private Disruptor<CommandEvent> coreCmdDisruptor;

    public void makeSnapshot() {
        coreCmdDisruptor.publishEvent((event, sequence) -> event.setSnapshot(true));
    }
}